Easily programming behaviors is one major issue of a large and reconfigurabledeployment in the Internet of Things. Such kind of devices often requires toexternalize part of their behavior such as the sensing, the data aggregation orthe code offloading. Most existing context-oriented programming languagesintegrate in the same class or close layers the whole behavior. We propose toabstract and separate the context tracking from the decision process, and touse event-based handlers to interconnect them. We keep a very easy declarativeand non-layered programming model. We illustrate by defining an extension toGolo-a JVM-based dynamic language.
展开▼